import 'package:flutter/material.dart';

import '../../../top_foundation.dart';

class DialogState {
  late DialogModel m;
}

class DialogModel {
  String? title;
  String? msg;
  Widget? content;
  String? cancelText = '取消';
  String? sureText = '确定';
  Color? cancelColor;
  Color? sureColor;
  BoolResultCallback? conditionDismiss;
  bool hasHeaderLine;
  bool hasFooterLine;

  EdgeInsets? margin;

  DialogModel({
    this.title,
    this.msg,
    this.content,
    this.cancelColor,
    this.cancelText = '取消',
    this.sureColor,
    this.sureText = '确认',
    this.conditionDismiss,
    this.hasHeaderLine = true,
    this.hasFooterLine = false,
    this.margin,
  });
}
